#include<bits/stdc++.h>
using namespace std;
int main()
{
	double s1,s2;
	int a,b,c,d;
	scanf("%d/%d %d/%d",&a,&b,&c,&d);
	s1=1.0*a/b;
	s2=1.0*c/d;
	if(s1<s2)
	printf("%d/%d<%d/%d",a,b,c,d);
	else if(s1==s2)
	printf("%d/%d=%d/%d",a,b,c,d);
	else
	printf("%d/%d>%d/%d",a,b,c,d);
    return 0;
}
